﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CourseRecommend
{
    class testRecommendMe
    {
        public static void test()
        {
            RecommendMe.getHistory();
            RecommendMe.getOrderedList();
            //List<string> recommendedList = new List<string>();
            RecommendMe.recommendSchedule();
            //recommendedList.AddRange(RecommendMe.selectPrerequisiteIfNeeded("1"));
            foreach (string item in RecommendMe.recommendedList)
            {
                System.Console.WriteLine(item);
            }
            //foreach (string sitem in RecommendMe.tempHistoryList)
            //{
            //    System.Console.WriteLine(sitem);
            //}

        }

        public static void testGetCredits()
        {
            if (RecommendMe.getCredits("1").Equals("5"))
                MessageBox.Show("passed");
            else
                MessageBox.Show("Failed");
            
        }

        public static void testIsOfferedThisSemester()
        {
            if (RecommendMe.isOfferedThisSemester("16"))
            {
                MessageBox.Show("test passed");

            }
            else MessageBox.Show("Failed");
        }
        public static void testhavePrereq()
        {
            RecommendMe.getHistory();
            if (RecommendMe.havePrereq("53"))
                MessageBox.Show("Passed");
            else MessageBox.Show("faield");
        }

        public static void testGetHistory()
        {
            RecommendMe.getHistory();
            foreach (string stringy in RecommendMe.historyList)
            {
                MessageBox.Show(stringy);
            }
        }

        public static void testCheckForCompletionOfRecommendation()
        {
            RecommendMe.getOrderedList();
            foreach (string item in RecommendMe.orderedCurriculum)
            {
                RecommendMe.recommendedList.Add(item);

            }
            if (RecommendMe.checkForCompletionOfRecommendation())
            {
                MessageBox.Show("Passed");
            }
            else MessageBox.Show("Failed");
        }
    }

}